package ca.badenhorst.ourtrition.model;

/**
 * Created with IntelliJ IDEA.
 * User: wade
 * Date: 17/02/14
 * Time: 1:04 PM
 * To change this template use File | Settings | File Templates.
 */
public class SampleSize {
    String ndbNo;
    int sequence;
    double amount;
    String description;
    double weightGrams;

    public int getSequence() {
        return sequence;
    }

    public void setSequence(int sequence) {
        this.sequence = sequence;
    }

    public String getNdbNo() {
        return ndbNo;
    }

    public void setNdbNo(String ndbNo) {
        this.ndbNo = ndbNo;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public double getWeightGrams() {
        return weightGrams;
    }

    public void setWeightGrams(double weightGrams) {
        this.weightGrams = weightGrams;
    }

    public String toString() {
        return getAmount() + " " + getDescription() + " (" + getWeightGrams() + "g)";
    }

    public static SampleSize getDefault() {
        SampleSize sampleSize=new SampleSize();
        sampleSize.setDescription("grams");
        sampleSize.setWeightGrams(100);
        sampleSize.setAmount(100);
        return sampleSize;
    }
}
